<template>
	<div>
		<!-- 混入 -->
		<button @click="getName">获取用户名</button>
	</div>
</template>

<script>
import mx from './mx'
export default {
	//安装混入
	mixins: [mx],
	methods: {
		getName() {
			alert(this.name)
		},
	},
}
</script>

<style>
</style>